<?php

use Addons\Cms\Models\Post;
use yii\helpers\Html;

/* @var $models Post[] */
/* @var $model Post */
?>
<div class="index-news">
    <ul class="list-items text-primary">
        <?php foreach ( $models as $model ): ?>
            <li class="post-item">
                <h4><?= Html::a( $model->title, [ '/cms/post/show', 'id' => $model->id ] ) ?></h4>
                <p class="text-muted" style="margin-bottom: 15px;"><?= $model->description ?></p>
            </li>
        <?php endforeach; ?>
    </ul>
</div>